<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('规格值')}:</label>
        <div class="col-xs-12 col-sm-8">
            {foreach name="data" item="val" key="key"}
            <p class="goodsAttr">
                <font color="#2e8b57">{$val['names']}</font>
                <input type="hidden" value="{$val['id']}" name="row[attrId][]">
            </p>
            <?php  $value=model('Classattrvalue')->where(['class_attr_id'=>$val['id'],'classes_id'=>$class_id])->select();?>
            {foreach name="value" item="vv" key="k"}
            <div class="checkbox-inline">
                <input type="checkbox" name="row[spec_attr][{$val['id']}][]" value="{$vv['id']}">
                <label>{$vv['sp_value_name']}</label>
            </div>
            {/foreach}
            {/foreach}
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
